package com.kevin.websocket.client.model.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.io.Serial;
import java.io.Serializable;

@Getter
@Setter
@ToString
@Accessors(chain = true)
@Schema(description = "正文消息体")
public class PayloadDTO implements Serializable {

    @Serial
    private static final long serialVersionUID = 2000627237109974897L;

    @Schema(description = "正文类型 NONE(\"0\") 无,TEXT(\"1\") 文本,FILE(\"2\") 文件,IMG(\"3\") 图片,VIDEO(\"4\") 视频")
    private String contentType;

    @Schema(description = "正文内容")
    private String content;

    @Schema(description = "附件地址")
    private String annexUrl;

    @Schema(description = "消息时间戳", hidden = true)
    private long timestamp = System.currentTimeMillis();

}
